# -*- coding: utf-8 -*-
# @Time    : 2024/11/7  13:36
# @Author  : Nabby
# @FileName: resource_impl.py
# @Desc    :

from app import db
from datetime import datetime


class ResourceType(db.Model):
    __tablename__ = "sys_resource_type"
    id = db.Column(db.String(36), primary_key=True)
    name = db.Column(db.String(100))
    description = db.Column(db.String(200))
    status = db.Column(db.Integer)
    create_time = db.Column(db.DATETIME, default=datetime.now)
    update_time = db.Column(db.DATETIME, default=datetime.now, onupdate=datetime.now)

